package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.mapper.TAdvertisementMapper;
import cn.xbtop.bean.TAdvertisement;
import cn.xbtop.service.TAdvertisementService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:34
 * @version 1.0
 */
@Service
public class TAdvertisementServiceImpl implements TAdvertisementService{

    @Resource
    private TAdvertisementMapper tAdvertisementMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tAdvertisementMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TAdvertisement record) {
        return tAdvertisementMapper.insert(record);
    }

    @Override
    public TAdvertisement selectByPrimaryKey(Integer id) {
        return tAdvertisementMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TAdvertisement record) {
        return tAdvertisementMapper.updateByPrimaryKey(record);
    }

}
